<?php
require_once 'dao/AbstractDAO.php';

class MeetingDAO extends AbstractDAO{
	private static $TABLE = "MEETING";
	public static $MEETING_ID_PREFIX = "MEET";
	public static $REGION_ID_PREFIX = "REGN";
	
	public function insertMeeting($params){
		$sequenceDAO = new SequenceDAO();
		
		$values = array();
		$values["MEETING_ID"] = $params["meetingId"];
		$values["GROUP_NAME"] = $params["groupName"];
		$values["ORG_NAME"] = $params["orgName"];
		$values["ORG_PHONE_NO"] = $params["orgPhoneNo"];
		$values["APPOINTMENT_TIME"] = $params["appointmentTime"];
		$values["MESSAGE"] = $params["message"];
		$values["REGION_X"] = $params["regionX"];
		$values["REGION_Y"] = $params["regionY"];
		$values["REGION_ID"] = $params["regionId"];
		
		return $this->insert(MeetingDAO::$TABLE, $values);
	}
	
}
?>